package com.wwh.furns.dao;

import com.wwh.furns.entity.OrderItem;

import java.util.List;

/**
 * @author Albert
 * @date 2024/7/31-20:54
 * @describe 订单项DAO
 */
public interface OrderItemDAO {
    /**
     * 将传入的OrderItem保存到数据库表order_item
     * @param orderItem
     * @return
     */
    public int saveOrderItem(OrderItem orderItem);

    /**
     * 根据传入的订单id查找对应的OrderItem
     * @return
     */
    public List<OrderItem> readOrderItemByOrderId(String orderId);
}
